package com.dhsc.controller.common;

import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.domain.yypt.sys.TXtdmVo;
import com.dhsc.service.common.ICommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: CommonController
 * @Description: 公用方法
 * @Author: jwj
 * @Date: 2023/11/7 10:52
 */
@Controller
@RequestMapping("/common")
public class CommonController {
    @Autowired
    private ICommonService commonService;

    /**
     * @Description: 根据多个分类代码查询字典
     * @MessageName:queryQsTXtdmByFldmStr
     * @Param: x
     * @return: ResponseObject
     * @Author: jwj
     * @Date: 2023/11/7 13:33
     */
    @ResponseBody
    @RequestMapping(value="/queryQsTXtdmByFldmStr")
    public ResponseObject queryQsTXtdmByFldmStr(TXtdmVo x){
        return commonService.queryQsTXtdmByFldmStr(x);
    }

    /**
    * @Description: 根据多个分类代码查询ZH用户下字典
    * @MessageName: queryZhTXtdmByFldmStr
    * @param: x
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2025/1/3 14:52
    */
    @ResponseBody
    @RequestMapping(value="/queryZhTXtdmByFldmStr")
    public ResponseObject queryZhTXtdmByFldmStr(TXtdmVo x){
        return commonService.queryZhTXtdmByFldmStr(x);
    }
}
